﻿using Model.Models;
using ModelDto.Response;
using ModelDto;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IService.SystemTableService
{
    public interface IOnLineMsgService
    {
        /// <summary>
        /// 获取好友聊天最近一条消息
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        Task<List<GetUserMsgFirstListResonse>?> GetUserMsgFirstList(DeleteMoreRequest request, Account account);

        /// <summary>
        /// 获取好友聊天记录
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        Task<List<GetOnLineMsgListResonse>?> GetOnLineMsgList(DelRequest request, Account account);

        /// <summary>
        /// 发送消息
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        Task<(bool, string)> SendMsg(SendMsgRequest request, Account account);
    }
}
